package cn.com.utt.common.message;

import com.alibaba.fastjson.JSON;

public class StaInfo extends Message {

	public StaInfo() {
		setType(MessageType.STAINFO.toString());
	}

	@Override
	public String encode() {
		return JSON.toJSONString(this);
	}

	@Override
	public void decode(byte[] buf) {
		StaInfo staInfo = JSON.parseObject(buf, StaInfo.class);
		this.setId(staInfo.getId());
	}
}